package com.blueocean_health.care.management.controller.app;

import java.util.List;

import javax.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.blueocean_health.care.management.domain.base.SysResult;
import com.blueocean_health.care.management.domain.dto.DeptFloorDto;
import com.blueocean_health.care.management.service.DeptBuildFloorService;

/**
 * 四级联动 接口 2017-8-24 15:21:39
 * @author wuyanli
 *
 */
@RestController
@RequestMapping("app/hospital")
public class AppDeptBuildFloorController{
	
	@Resource
	private DeptBuildFloorService deptService;

	/**
	 * 医院 科室 楼号 楼层 四级联动  2017年8月28日10:55:08
	 * @return
	 */
	@RequestMapping("linkage")
	public SysResult getAllFromHospital(){
		List<DeptFloorDto> allDeptInfoList = deptService.getAllFromHospital();
		return SysResult.ok( allDeptInfoList);
	}
	
	
}
